package t20240605;

import java.util.Arrays;

public class TermideTest {


    public static void main(String[] args) {



        String msg = "aaa\u0001bbb\u0001ccc";


        String by = "u0001";
        String convert = convert(by);
        System.out.println(convert);
        String[] split = msg.split(convert);
        System.out.println(Arrays.toString(split));


    }



    private static String convert(String uu) {

        if (uu.startsWith("u")) {
            return "\\" + uu;
        }
        return uu;
    }
}
